import createAxios from "./axios";
const baseURL = "api/"


// 轮播图
export const requestBanner = () => createAxios('get', `/${baseURL}banner`)
// 首页推荐歌单的其余九项歌单
export const requestRecommenSongList = (num: number) => createAxios('get', `/${baseURL}personalized?limit=${num}`)
// 每日推荐歌曲
export const requestEverydaySongRecom = () => createAxios('get', `/${baseURL}recommend/songs`)
// 更具id获取音源
export const requestGetSoundSource = (id: number) => createAxios('post', `/${baseURL}song/url/v1?id=${id}`)
// 获取歌单所有歌曲
export const requestsongListAllSong = (id: string) => createAxios('get', `/${baseURL}playlist/track/all?id=${id}`)
// 获取歌单详情
export const requestPlaylistDetail = (id: string) => createAxios('get', `/${baseURL}playlist/detail?id=${id}`)
// 歌单热门评论
export const requestSongListHotCom = (id: string, offset: number, type: number) => createAxios('get', `/${baseURL}comment/hot?id=${id}&type=${type}&limit=10&offset=${offset}`)
// 歌单所有评论
export const requestSongAllComment = (id: string, offset: number) => createAxios('get', `/${baseURL}comment/playlist?id=${id}&offset=${offset}`)
// 获取所有歌单收藏者
export const requestSongListCollection = (id: number) => createAxios('get', `/${baseURL}playlist/subscribers?id=${id}`)
// 获取用户信息
export const requestUserDetailInfo = (id: number) => createAxios('get', `/${baseURL}user/detail?uid=${id}`)
// user 歌单列表
export const requestUserSongList = (id: number) => createAxios('get', `/${baseURL}user/playlist?uid=${id}`)
// 用户动态数据
export const requestUserDynamic = (id: number) => createAxios('get', `/${baseURL}user/event?uid=${id}&type=18`)
// 获取用户关注列表数据
export const requestAttentionList = (id: number) => createAxios('get', `/${baseURL}user/follows?uid=${id}`)
// 用户听歌排行
export const requestLastWeekSongList = (id: number, type: number) => createAxios('get', `/${baseURL}user/record?uid=${id}&type=${type}`)
// 最近播放的播客
export const requestRecordRecent = (id: number) => createAxios('get', `/${baseURL}record/recent/dj?limit=30&uid=${id}`)
// 独家放送
export const requestExclusiveBroadcast = () => createAxios('get', `/${baseURL}personalized/privatecontent`)
// mv详情数据
export const requestMVDetail = (id: number) => createAxios('get', `/${baseURL}mv/detail?mvid=${id}`)
// mv 地址
export const requestMVAddition = (id: number) => createAxios('get', `/${baseURL}mv/url?id=${id}`)
// 获取 mv 点赞转发评论数数据
export const requestMVInfo = (id: number) => createAxios('get', `/${baseURL}mv/detail/info?mvid=${id}`)
// mv 所有评论
export const requestMvAllCom = (id: number, offset: number) => createAxios('get', `/${baseURL}comment/mv?id=${id}&offset=${offset}`)
// 推荐 mv
export const requestMVRecomment = () => createAxios('get', `/${baseURL}personalized/mv`)
// 推荐新音乐
export const requestNewSongs = () => createAxios('get', `/${baseURL}personalized/newsong?limit=12`)
// 歌单分类
export const requestSongCategory = () => createAxios('get', `/${baseURL}playlist/catlist`)
// 精品歌单标签列表
export const requestHighqualityList = () => createAxios('get', `/${baseURL}playlist/highquality/tags`)
// 获取精品歌单
export const requestHighqualitySongList = (limit: number, tag: string) => createAxios('get', `/${baseURL}top/playlist/highquality?before=${Date.now()}&limit=${limit}&cat=${tag}`)
// 所有榜单
export const requestAllRankingList = () => createAxios('get', `/${baseURL}toplist`)
// 歌手分类列表
export const requestSingerCateList = (type: string, area: string, initial: string) => createAxios('get', `/${baseURL}artist/list?type=${type}&area=${area}&initial=${initial}`)
// 获取歌手详情
export const requestSingerDetail = (id: number) => createAxios('get', `/${baseURL}artist/detail?id=${id}`)
// 获取歌手专辑
export const requestSingerAlbum = (id: number) => createAxios('get', `/${baseURL}artist/album?id=${id}`)
// 获取歌手五十首热门歌曲
export const requestSingerHotSong = (id: number) => createAxios('get', `/${baseURL}artist/top/song?id=${id}`)
// 专辑动态信息
export const requestAlbumDynamic = (id: number) => createAxios('get', `/${baseURL}album/detail/dynamic?id=${id}`)
// 获取专辑评论
export const requestAlbumComment = (id: number, offset: number) => createAxios('get', `/${baseURL}comment/album?id=${id}&offset=${offset}`)
// 专辑的歌单歌曲
export const requestAlbumSongList = (id: number) => createAxios('get', `/${baseURL}album?id=${id}`)
// 获取歌手所有MV
export const requestSingerAllMV = (id: number, pageNum: number) => createAxios('get', `/${baseURL}artist/mv?id=${id}&offset=${pageNum}&limit=20`)
// 获取歌手描述
export const requestSingerDesc = (id: number) => createAxios('get', `/${baseURL}artist/desc?id=${id}`)
// 获取相似歌手
export const requestSimilarSinger = (id: number) => createAxios('get', `/${baseURL}simi/artist?id=${id}`)
// 新歌速递
export const requestNewSongExpressDelivery = (code: string) => createAxios('get', `/${baseURL}top/song?type=${code}`)
// 新碟上架
export const requestNewCD = (area: string, type: string) => createAxios('get', `/${baseURL}/top/album?area=${area}&type=${type}`)
// 视频分类列表
export const requestVideoCategory = () => createAxios('get', `/${baseURL}video/category/list`)
// 视频标签列表
export const requestVideoTagList = () => createAxios('get', `/${baseURL}video/group/list`)
// 获取所有视频列表
export const requestAllVideo = (offset: number) => createAxios('get', `/${baseURL}video/timeline/all?offset=${offset}`)
// 获取视频标签/分类下的视频
export const requestTagVideo = (tagID: number, offset: number) => createAxios('get', `/${baseURL}video/group?id=${tagID}&offset=${offset}`)
// 视频播放地址
export const requestVideoPlayAddress = (id: string) => createAxios('get', `/${baseURL}video/url?id=${id}`)
// 视频详情
export const requestVideoDetail = (id: string) => createAxios('get', `/${baseURL}video/detail?id=${id}`)
// 获取视频评论
export const requestVideoAllComment = (id: string, offset: number) => createAxios('get', `/${baseURL}comment/video?id=${id}&offset=${offset}`)
// 获取相关视频
export const requestRelatedVideo = () => createAxios('get', `/${baseURL}video/timeline/recommend?offset=10`)
// 请求最新mv
export const requestLatestMV = (limit: number, area: string) => createAxios('get', `/${baseURL}mv/first?limit=${limit}&area=${area}`)
// 获取最热mv
export const requestHottestMV = () => createAxios('get', `/${baseURL}mv/all?order=最热&limit=10`)
// 网易出品mv
export const requestNetEaseProd = () => createAxios('get', `/${baseURL}mv/exclusive/rcmd?limit=10`)
// mv排行榜
export const requestMVRanking = (limit: number, area: string) => createAxios('get', `/${baseURL}top/mv?limit=${limit}&area=${area}`)
// 请求所有mv
export const requestAllMV = (area: string, type: string, order: string, offset: number) => createAxios('get', `/${baseURL}mv/all?area=${area}&type=${type}&order=${type}&offset=${offset}`)
// 请求私人FM
export const requestPrivateFM = () => createAxios('get', `/${baseURL}personal_fm`)
// 获取歌词
export const requestLyric = (id: any) => createAxios('get', `/${baseURL}lyric?id=${id}`)
// 请求歌曲评论
export const requestSongAllCom = (id: number, offset: number) => createAxios('get', `/${baseURL}comment/music?id=${id}&offset=${offset}`)
// 搜索热搜列表(详细)
export const requestSearchHotList = () => createAxios('get', `/${baseURL}search/hot/detail`)
// 搜索建议
export const requestSearchSuggest = (keywords: string) => createAxios('get', `/${baseURL}search/suggest?keywords=${keywords}`)
// 默认搜索关键字
export const requestDefaultKeywords = () => createAxios('get', `/${baseURL}search/default`)
// 搜索多重匹配
// export const requestMultipleMatching = (keywords: string) => createAxios('get', `/${baseURL}search/multimatch?keywords=${keywords}`)
// 综合搜索
export const requestSynthesizeSearchResult = (keywords: string, type: number, limit: number, offset: number) => createAxios('get', `/${baseURL}cloudsearch?keywords=${keywords}&type=${type}&limit=${limit}&offset=${offset}`)
